package com.xy.job.admin.repository

import com.xy.job.admin.domain.NotifyInstance
import com.xy.job.admin.enums.NotifyStatus
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.JpaRepository
import java.time.LocalDateTime

interface NotifyInstanceRepository : JpaRepository<NotifyInstance, Long> {

    fun findByCreateTimeGreaterThanAndNotifyStatus(
        startTime: LocalDateTime,
        notifyStatus: NotifyStatus,
        pageable: Pageable,
    ): Page<NotifyInstance>
}